using System;

using Pegasus.Workflow.Service;

namespace Pegasus.UnitTests.Workflow.Service.Workflows
{
	/// <summary>
	/// Workflow that test the parent child workflow interaction
	/// </summary>
	public class TestParentWorkflow : Pegasus.Workflow.Service.Workflow
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="T:TestEventWorkflow"/> class.
		/// </summary>
		public TestParentWorkflow() :
			base( "TestParentWorkflow" )
		{
		}

		/// <summary>
		/// Registers the states.
		/// </summary>
		public override void RegisterStates()
		{
			RegisterState( new StateCallChildWorkflow() );
			
			SetInitialState( "StateCallChildWorkflow" );
		}
	}
}
